package cn.nyh.test.service.impl;

import cn.nyh.test.dao.UserDao;
import cn.nyh.test.domain.User;
import cn.nyh.test.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService{
    @Autowired
    private UserDao userDao;

    public User add(User user) {
        return userDao.add(user);
    }

    public User findById(Integer uid) {
        return userDao.findById(uid);
    }

    public User deleteById(Integer uid) {
        return userDao.deleteById(uid);
    }

    public User updateById(Integer uid) {
        return userDao.updateById(uid);
    }
}
